import { Module } from '@nestjs/common';
import { TagService } from './tag.service';
import { TagController } from './tag.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Tag } from './entities/tag.entity';
import { PaginationModule } from '../../common/pagination/pagination.module';
import { PaginationService } from '../../common/pagination/pagination.service';

@Module({
  imports: [
    TypeOrmModule.forFeature([Tag]),
    PaginationModule,
    PaginationService,
  ],
  controllers: [TagController],
  providers: [TagService],
  exports: [PaginationService, TagService],
})
export class TagModule {}
